/**
 * Copyright (c) 2015-2016, Javen Zhou  (javenlife@126.com).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package com.jfinal.weixin.template;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.jfinal.kit.JsonKit;

public class TempToJson {
	public static String getTempJson(String touser,String template_id,String topcolor,String url,DataItem data){
		TempEntity entity=new TempEntity();
		entity.setTouser(touser);
		entity.setTemplate_id(template_id);
		entity.setTopcolor(topcolor);
		entity.setUrl(url);
		entity.setData(data);
		return JsonKit.toJson(entity);
	}
}
